package com.itheima.demo;

import java.io.Serializable;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class Demo02 {
    public static void main(String[] args) {
        List<Integer> list = List.of(1, 2, 3, 4, 5, 6, 7);
        list.add(8);//UnsupportedOperationException

        Set<Integer> set = Set.of(1, 2, 3, 4, 5);
        set.remove(1);//UnsupportedOperationException

        Map<String, String> map = Map.of("A", "a", "B", "b");
        map.put("C","c");//UnsupportedOperationException
    }
}
